package app.server.project.main.service.db.entity.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import lombok.Data;
import org.hibernate.annotations.Comment;

import java.time.LocalDateTime;

@Data
@Entity(name = "cms_user")
@TableName("cms_user")
@Comment(value = "cms用户")
public class CMSUserEntity {


    @Id
    @Column(name = "user_name")
    @Comment("用户名称")
    @TableId("user_name")
    private String userName;


    @Column(name = "pwd")
    @Comment("用户密码")
    @TableField("pwd")
    private String pwd;


    @Column(name = "create_time")
    @Comment("备注")
    @TableField("create_time")
    private LocalDateTime createTime;
}
